package cinema;

import java.io.Serializable;

/**
 * @authors Matt Couzens & Amanda Kosinski
 * @version 29 April 2012
 */

public class Customer extends Person implements Serializable {
	
	private String title;
	private String firstname;	
	private String surname;
	private String address;
	private String paymentType;
	
	public Customer(String username, String password) {
		super(username, password, Person.Role.Customer);
	}
		
	/**
	 * @param username
	 * @param password
	 * @param title
	 * @param firstname
	 * @param surname
	 * @param address
	 * @param paymentType
	 */
	public Customer(String username, String password, String title,
			String firstname, String surname, String address, String paymentType) {
		super(username, password, Person.Role.Customer);
		this.title = title;
		this.firstname = firstname;
		this.surname = surname;
		this.address = address;
		this.paymentType = paymentType;
	}

	/**
	 * @return surname
	 */
	String getSurname(){
		return surname;
	}
	
	void setSurname(String sname){
		surname = sname;
	}

	/**
	 * @return address
	 */
	String getAddress() {
		return address;
	}

	void setAddress(String addrs) {
		address = addrs;
	}

	/**
	 * @return payment type
	 */
	String getPaymentType() {
		return paymentType;
	}

	void setPaymentType(String payType) {
		payType = paymentType;
	}

	/**
	 * @return title
	 */
	String getTitle() {
		return title;
	}

	void setTitle(String tle) {
		tle = title;
	}

	/**
	 * @return firstname
	 */
	String getFirstname() {
		return firstname;
	}

	void setFirstname(String fname) {
		firstname = fname;
	}
	
}